package team.scau.laboratory_repair.modules.po;

import lombok.*;
import team.scau.laboratory_repair.common.base.BaseModel;

import javax.persistence.*;
import java.sql.Timestamp;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "lab_record_subscription")
public class RecordSubscription extends BaseModel {

    @Builder
    public RecordSubscription(Long id, Timestamp createTime, Timestamp updateTime, Timestamp deleteTime, Boolean valid, Long subscription, Integer status, Long recordId, String procId, Long principalId) {
        super(id, createTime, updateTime, deleteTime, valid);
        this.subscription = subscription;
        this.status = status;
        this.recordId = recordId;
        this.procId = procId;
        this.principalId = principalId;
    }

    @Column
    private Long subscription;
    @Column(columnDefinition = "tinyint")
    private Integer status;
    @Column
    private Long principalId;
    @Column
    private Long recordId;
    @Column
    private String procId;
}
